﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class PortTransferStateChangedMessage : BaseTibcoMessage<PortTransferStateChangedMessageBody>
    {
        public PortTransferStateChangedMessage()
        {

        }
        public PortTransferStateChangedMessage(PortTransferStateChangedMessageBody body, string inboxName = "", string listener = "") : base("PortTransferStateChanged", body, inboxName, listener)
        {
        }
    }


    public class PortTransferStateChangedMessageBody : EventMessageBase
    {
        public PortTransferStateChangedMessageBody()
        {
        }

        public PortTransferStateChangedMessageBody(string lineName)
        {
            LineName = lineName;
            EventUser = lineName;
        }

        [XmlElement("LINENAME")]
        public string LineName { get; set; }
        [XmlElement("PORTLIST")]
        public PortList PortList { get; set; }
        [XmlElement("ULDPORTLIST ")]
        public object ULDPORTLIST { get; set; }

    }
}
